package biz.datalk.industrialland.mbg.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 角色菜单权限表
 */
@TableName(value = "sys_role_function")
public class SysRoleFunction {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 角色编码 sys_role.id
     */
    @TableField(value = "role_id")
    private Long roleId;

    /**
     * 菜单编码 sys_function.id
     */
    @TableField(value = "function_id")
    private Long functionId;

    public static final String COL_ID = "id";

    public static final String COL_ROLE_ID = "role_id";

    public static final String COL_FUNCTION_ID = "function_id";

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取角色编码 sys_role.id
     *
     * @return role_id - 角色编码 sys_role.id
     */
    public Long getRoleId() {
        return roleId;
    }

    /**
     * 设置角色编码 sys_role.id
     *
     * @param roleId 角色编码 sys_role.id
     */
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    /**
     * 获取菜单编码 sys_function.id
     *
     * @return function_id - 菜单编码 sys_function.id
     */
    public Long getFunctionId() {
        return functionId;
    }

    /**
     * 设置菜单编码 sys_function.id
     *
     * @param functionId 菜单编码 sys_function.id
     */
    public void setFunctionId(Long functionId) {
        this.functionId = functionId;
    }
}